import { defHttp } from "/@/utils/http/axios"
import { Modal } from "ant-design-vue"

enum Api {
  page = "/infra-service/mpUser/pageMpUser",
  edit = "/infra-service/mpUser/updateMpUser",
  syncMpUser = "/infra-service/mpUser/syncMpUser",
}

/**
 * 列表
 * @param params
 */
export const pageMpUser = (params) => defHttp.get({ url: Api.page, params })

/**
 * 保存或者更新
 * @param params
 */
export const saveOrUpdateMpUser = (params, isUpdate) => {
  return defHttp.post({ url: Api.edit, params })
}

export const syncMpUser = (params) => {
  return defHttp.post({ url: Api.syncMpUser, params }, { joinParamsToUrl: true })
}
